package com.tiger.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
@TableName("menu")
public class Menu {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String type;
    private String path;
    private String component;
    private String permission;
    private String api;
    @TableField("api_method")
    private String apiMethod;
    @TableField("keep_alive")
    private Boolean keepAlive;
    private Boolean display;
    private Boolean enable;
    private int sort;
    @TableField("parent_id")
    private int parentId;
}